package com.xkdx.guangguang.fragment.shopinfo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;
import com.xkdx.guangguang.module.statics.IConstants;

public class ShopInfoUnitAction extends AbsAction {

	String shopID, order, by, keywords, type, pageIndex, pageSize;

	public ShopInfoUnitAction(String shopID, String order, String by,
			String keywords, String type, String pageIndex, String pageSize) {
		this.url = IConstants.INFO_URL;
		this.shopID = shopID;
		this.order = order;
		this.by = by;
		this.keywords = keywords;
		this.type = type;
		this.pageIndex = pageIndex;
		this.pageSize = pageSize;
	}

	@Override
	public void constructRequest() {
		// 优惠信息
		HashMap<String, String> unitInfomap = new HashMap<String, String>();
		unitInfomap.put("ShopID", shopID);
		unitInfomap.put("Order", order);
		unitInfomap.put("By", by);
		unitInfomap.put("Keywords", keywords);
		unitInfomap.put("Type", type);
		unitInfomap.put("PageIndex", pageIndex);
		unitInfomap.put("PageSize", pageSize);

		String newInfoJson = constructJson(unitInfomap);
		Parameter newInfoparameter = new Parameter("PosDeviceChapterAction",
				"getProductList", newInfoJson);
		List<Parameter> list = new ArrayList<AbsAction.Parameter>();
		list.add(newInfoparameter);
		requestData = constructMod(list);

	}

}
